git rebase
ブランチの派生元(上流)を変更する
Git:リベース - Git:rebase
gitコマンド